package com.ctech.wsgen.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class Manufacture extends Item {

	private String websiteURL;
	private String logoFileName;
	private List<Item> items = new ArrayList<Item>();

	public Manufacture(int id, String vendorName, String partNum,
			String description, BigDecimal price, String fileName, String websiteURL, String logoFileName) {
		super(id, vendorName, partNum, description, price, fileName);
		this.websiteURL = websiteURL;
		this.logoFileName = logoFileName;
	}
	
	public String getWebsiteURL() {
		return websiteURL;
	}
	public void setWebsiteURL(String websiteURL) {
		this.websiteURL = websiteURL;
	}
	public void setLogoFileName(String logoFileName) {
		this.logoFileName = logoFileName;
	}
	public String getLogoFileName() {
		return logoFileName;
	}
	public List<Item> getItems() {
		return items;
	}
	public void setItems(List<Item> items) {
		this.items = items;
	}

	public String getUniqueName() {
		return this.getVendorName() + "-" + this.getFileName();
	}

	public String getVendorNameFirstChar() {
		return this.getVendorName().substring(0, 1).toUpperCase();
	}
	
	
	
}
